<?php
	$i=0;
	if(is_array($dataarray)){
	$i++;
		foreach($dataarray as $value){
		echo $value['uname'].",".$value['tel'].",".$value['payment'];
		if($value['order_addtime']!=0)
			echo ",".date("Y-m-d H:i",$value['order_addtime']);
		echo ",".$value['num'].",".$value['order_total_price'].chr(10);
		}
	}
	
	if($i==0) echo "暫無資料";
	?>
